package com.jungle.bfi.service.${module}.impl;
<#-- projectModule:main -->
<#assign projectModule = "main">

import com.jungle.base.domain.bo.BaseUserBo;
import com.jungle.base.service.AbstractService;
import com.jungle.bfi.domain.bo.${model}Bo;
import com.jungle.bfi.entity.${model}Po;
import com.jungle.bfi.service.${module}.${model}Service;
import org.n3r.idworker.Sid;
import org.springframework.stereotype.Service;

/**
 * ${comment}
 * @author ${author}
 * @since ${since}
 */
@Service
public class ${model}ServiceImpl extends AbstractService<${model}Po, ${model}Bo, String> implements ${model}Service {

    @Override
    protected String getBoId(${model}Bo bo) {
        return bo.getId();
    }

    @Override
    protected String newPoId() {
        return Sid.nextShort();
    }

    @Override
    protected ${model}Po createPo(${model}Bo bo, BaseUserBo userBo) {
        return mapper.map(bo, ${model}Po.class);
    }
}
